var $ = require('jquery');
var util = require('imutil');

var tpl = require('../tpl');
var i18n = require('../i18n');
var servant = require('../i18n/servant');
var bus = require('bus');

var defaults = {
    el: null,
    tmpl:null
};

var InquirySend = function(config){
    this.config = util.extend({}, defaults, config);
    this.elems = {};

    this.__init();
};

InquirySend.prototype = {
    __init: function(){
        this.config.tmpl = tpl.chat2.sendInquiry({
            inquiryUrl: this.config.inquiryUrl
        });

        this.elems.$el = $(this.config.el);
       // this.elems.$sendInquiry = $(this.config.tmpl);

       this.elems.$el.append(this.config.tmpl);

    }
};

module.exports = InquirySend;